package mastermind.game;

import java.io.Serializable;

public class Player implements Serializable {
	private static final long serialVersionUID = -3786495861929397093L;
	
	private String firstname;
	private String surname;
	private String username;
	private String password;
	private String phoneNumber;

	public Player(String firstname, String surname, String username,
			String password, String phoneNumber) {
		this.firstname = firstname;
		this.surname = surname;
		this.username = username;
		this.password = password;
		this.phoneNumber = phoneNumber;
	}

	public String getPassword() {
		return password;
	}

	public String getFirstname() {
		return firstname;
	}

	public String getSurname() {
		return surname;
	}

	public String getUsername() {
		return username;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public String toString() {
		return String.format("%s (%s %s)", username, firstname, surname);
	}

}
